package com.dyna.domain.event;

import io.swagger.annotations.ApiModel;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
@ApiModel("入库事件")
public class WarehouseEvent extends ApplicationEvent {

    private final Long userId;
    private final Long count;
    private final Long itemId;

    public WarehouseEvent(Object source, Long userId, Long count, Long itemId) {
        super(source);
        this.userId = userId;
        this.count = count;
        this.itemId = itemId;
    }

}
